package com.fjnldx.mes.service.scheduling.alarm.rule.relieve;

import com.fjnldx.mes.domain.pojo.alarm.AlarmRecord;
import com.fjnldx.mes.domain.pojo.alarm.AlarmRules;
import com.fjnldx.mes.domain.pojo.alarm.enums.RelieveTypeEnum;

/**
 * 告警解除检擦
 */
public interface AlarmRelieveCheck {
    /**
     * 解除类型
     */
    RelieveTypeEnum RelieveType();

    /**
     * 检查是否触发
     *
     * @param rule 规则
     * @return 是否触发
     */
    Boolean Check(AlarmRules rule, AlarmRecord record) throws Exception;
}
